package common

import (
	"crypto/md5"
	"fmt"
)

func Md5(str string) string {
	Md5Inst := md5.New()
	Md5Inst.Write([]byte(str))
	hashBytes := Md5Inst.Sum([]byte(""))
	hashMd5 := fmt.Sprintf("%x", hashBytes)
	return hashMd5
}
